using System;
using System.Collections.Generic;
using System.Text;

using Sandia.MVCFramework.Data;
using Sandia.MVCFramework.DataAnalyzer;
using Sandia.MVCFramework.Request;
using Sandia.MVCFramework.TestPlugin.Data;
using Sandia.MVCFramework.TestPlugin.Request;

namespace Sandia.MVCFramework.TestPlugin.DataAnalyzer
{
    public class DummyDataAnalyzer: AbstractStandardDataAnalyzer
    {
        private bool started = false;

        public bool Started
        {
            get
            {
                return this.started;
            }
        }

        #region ISubscriber Members

        public override IList<Type> DesiredSubscriptions
        {
            get
            {
                List<Type> desiredSubscriptions = new List<Type>();
                desiredSubscriptions.Add(typeof(AOneData));
                desiredSubscriptions.Add(typeof(CData));
                return desiredSubscriptions;
            }
        }

        public override void HandlePublishedData(DataPacket dataPacket)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion

        #region IRequestProcessor Members

        public override IList<Type> DesiredRequests
        {
            get
            {
                // Add subscriptions
                List<Type> desiredRequests = new List<Type>();
                desiredRequests.Add(typeof(ARequest));
                return desiredRequests;
            }
        }

        protected override void processRequest(IRequest request)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion

        #region IDisposable Members

        public override void Dispose()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion

        public override void Start()
        {
            this.started = true;
        }
    }
}
